home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Maclife 13
/
MACLIFE13-No-93-1996.ISO.7z
/
MACLIFE13-No-93.ISO
/
Selection
/
OMO-J 体験版
/
Oracle Media Objects™J 体験版
/
Library
/
System
/
System
(
.txt
)
next >
Wrap
UltraCard Stack
|
1996-03-21
|
112KB
|
1,361 lines
CRDHabout
CRDHpreferences
CRDHsplash
CRDHsplash2
-- System Stack (Macintosh)
-- Oracle Media Objects
Version 1.0
-- Copyright
Oracle Corporation 1995
-- jdill, 9/20/95
-- okurose,2/7/96
on startUp
hide menubar
hide the sizebox
send doPreferences to card "Preferences" of (the long name of me)
if exists(cd 1 of this stack) then
hide toolbar
popup card "Splash2" of (the long name of me) as plain
show toolbar
show menubar
else
popup card "Splash" of (the long name of me) as plain
put it into splashBtn
show menubar
if splashBtn is "new" then
ask file "
N" for save with "
if it is empty then exit startup
put it into fname
create stack fname
go cd 1 of stack fname
else if splashBtn is "open" then
ask file "
" of type "STAK"
if it is empty then exit startup
put it into fname
go cd 1 of stack fname
end if
end if
end startUp
on doMenu theItem,theMenu
if not(theItem is "Oracle Media Objects
..." or (theItem is "
..." and theMenu is "
")) then pass doMenu
put the selectedObject into selObject
put the editBkgnd into onBkgnd
put word 1 of the tool into selTool
put the visible of the toolbar into toolbarVis
hide toolbar
if theItem is "
..." then
popup cd "Preferences" of (the long name of me) titled "
else
popup cd "About" of (the long name of me) as dialog
end if
if selObject is not empty then
set the editBkgnd to onBkgnd
select selObject
else
do "choose"&&selTool&&"tool"
set the editBkgnd to onBkgnd
end if
set the visible of the toolbar to toolbarVis
end doMenu
function OMOPath
-- put (the length of the long name of me) - 7 into lastPathChar
put (the number of chars of the long name of me) - 7 into lastPathChar
put char 8 to lastPathChar of the long name of me into sysPath
subtract 7 from lastPathChar
if char (lastPathChar-8) to lastPathChar of sysPath is ":Library:" then
return char 1 to (lastPathChar-8) of sysPath
else
return sysPath
end if
end OMOPath
function stackPath
put the number of chars of the short name of this stack into shortNameLength
put the number of chars of the long name of this stack into longNameLength
-- put the length of the short name of this stack into shortNameLength
-- put the length of the long name of this stack into longNameLength
return char 8 to (longNameLength-shortNameLength-1) of the long name of this stack
end stackPath
function objectClasses
return "bitmap,shape,button,field,picklist,datasheet,path,movie,sound,timer,group,palette"
end objectClasses
PFONT
APPLE CHANCERY
ARIAL
ARIAL NARROW~
ARIAL ROUNDED MT BOLD
ATHENS
AVANT GARDE
B COURIER BOLD
B FRANKLIN GOTHIC DEMIP
B FUTURA BOLD
B GARAMOND BOLD
B HELVETICA BOLD
B ITCKABEL BOLD
B ORCGARAM BOLD
B TIMES BOLD
BAUHAUS 93
BI COURIER BOLDOBLIQUE
BI FRANKLIN GOTHIC DEMIOBLIQUEO
BI GARAMOND BOLDITALICL
BI HELVETICA BOLDOBLIQUE~
BI ORCGARAM BOLDITALICe
BI TIMES BOLDITALIC
BIFFO MT
BIRCH
BK ITCKABEL BOOK~
BO FUTURA BOLDOBLIQUE
BOOK ANTIQUAa
BOOKMAN
BOOKMAN OLD STYLE
BOOKMAN OLD STYLE BOLD
BRAGGADOCIO
BRITANNIC BOLDV
BRUSH SCRIPT MT
C FUTURA CONDENSEDQ
C HELVETICA CONDENSED0
CAIRO
CB FUTURA CONDENSEDBOLD
CB HELVETICA CONDENSED BOLD
CBI HELVETICA CONDENSED BOLDOBL
CBO FUTURA CONDBOLDOBLIQUEP
CENTURY
CENTURY GOTHIC
CENTURY SCHOOLBOOK
CHICAGO
CI HELVETICA CONDENSED OBLIQUE
CL FUTURA CONDENSEDLIGHT
CL HELVETICA CONDENSED LIGHTx
CLB HELVETICA CONDENSED BLACK
CLBI HELVETICA CONDENSED BLACKO
CLI HELVETICA CONDENSED LIGHTOB
CLO FUTURA CONDLIGHTOBLIQUE
CLOSEDCAPTION2
CO FUTURA CONDENSEDOBLIQUE{
COLONNA MT
COURIER
COURIER NEW
CXB FUTURA CONDEXTRABOLD~
CXBO FUTURA CONDEXTRABOLDOBLIQU
D ITCKABEL DEMI
0 DECOLLAGE
DELTASYMBOL
0 DESDEMONA
DORCHESTER SCRIPT MT
0 ESPY SANS
ESPY SANS BOLD
EWORLD TIGHT~
FOOTLIGHT MT LIGHT
FRANKLINGOTHICP
FUTURAM
FUTURA BOOK
GARAMOND~
GENEVAQ
GILLSANSa
GILLSANS BOLD
GILLSANS BOLDITALIC
GILLSANS CONDENSED
GILLSANS EXTRABOLD
GILLSANS ITALIC
GILLSANS ULTRABOLD
H FRANKLIN GOTHIC HEAVY
H FUTURA HEAVY
0 HELVETICA
HI FRANKLIN GOTHIC HEAVYOBLIQUE
HO FUTURA HEAVYOBLIQUEP
HOEFLER TEXT
HOEFLER TEXT ORNAMENTSP
I COURIER OBLIQUE
I FRANKLIN GOTHIC BOOKOBLIQUED
I GARAMOND LIGHTITALICP
I HELVETICA OBLIQUE
I ORCGARAM LIGHTITALICA
I TIMES ITALIC
IMPACT
INDUSTRIA INLINE~
INDUSTRIA INLINEA
INDUSTRIA SOLID
INDUSTRIA SOLIDA~
JAPANESESIQ
KINO MT
L FUTURA LIGHT
LO FUTURA LIGHTOBLIQUE
LOCKFONT~
LONDONS
LOS ANGELES
M ITCKABEL MEDIUM
MATURA MT SCRIPT CAPITALSMA
MISTRAL
MOBILEP
MONACOA
MONOTYPE CORSIVAPT
MONOTYPE SORTS
MOTTECORMM_300 CN
MOTTECORMM_450 SC
MOTTECORMM_555 WD
MOTTECORMM_600 NO
MS LINEDRAW
MT EXTRAa
N HELVETICA NARROW
NAGOYA
NEW CENTURY SCHLBK
NEW YORKV
O FUTURA BOOKOBLIQUE~
O FUTURA OBLIQUE~
OCR-A
ORCGARAM
OSAKA-
OSAKA
PALATINO
PENUMMM_220 LT 0 SA
PENUMMM_220 LT 1000 SR
PENUMMM_220 LT 150 FS
PENUMMM_220 LT 500 HS
PENUMMM_365 RG 0 SA
PENUMMM_365 RG 1000 SRT
PENUMMM_365 RG 150 FS
PENUMMM_365 RG 500 HSUE
PENUMMM_585 SB 0 SA
PENUMMM_585 SB 1000 SRP
PENUMMM_585 SB 150 FS
PENUMMM_585 SB 500 HSUE
PENUMMM_725 BD 0 SA
PENUMMM_725 BD 1000 SR
PENUMMM_725 BD 150 FS
PENUMMM_725 BD 500 HSk
0 PEPITA MT
PLAYBILL~
0 QUICKTYPE
QUICKTYPE CONDENSED
QUICKTYPE MONO
QUICKTYPE PI
RUNIC MT CN
SAN FRANCISCOa
SCOTCH ROMAN MT
SCOTCH ROMAN MT ITALICE
SCRIPT MT BD
STENCIL
SYMBOL
TEKTON PLUS REGULAR
TIMES
TIMES NEW ROMAN
TORONTO
TTYFONT
U ITCKABEL ULTRA
VENICEP
VIVALDI
VT100
WIDE LATINP
0 WINGDINGS
XB FUTURA EXTRABOLD
XBO FUTURA EXTRABOLDOBLIQUE
XEBEC
ZAPF CHANCERY
ZAPF DINGBATS
INFO
Splash2SCRP
on openCard
put empty into fld "status"
put OMOPath()&"Library" into folderName
put the list of files of type "STAK" in folderName into libraryList
repeat with i = 1 to the number of lines of libraryList
put line i of libraryList into libraryName
if libraryName is "System" then next repeat
put "Librarying"&"e&libraryName"e&"..." into fld "status"
library folderName&":"&libraryName
end repeat
put empty into fld "status"
start timer 1 expire in 5 seconds
end openCard
on mouseUp
dismiss
end mouseUp
on returnKey
dismiss
end returnKey
on enterKey
dismiss
end enterKey
wINFO
statusTAIL
xINFO
trial notedata
This software is provided under a 90-day trial license.
Please consult the accompanying text files for license terms and ordering information.ADDD
yINFO
timer id 121SCRP
on timerExpired
dismiss
end timerExpired
AboutSCRP
on mouseup
dismiss
end mouseup
on returnKey
dismiss
end returnKey
on enterKey
dismiss
end enterKey
SplashSCRP
on openCard
hide bmp "Open Up"
hide bmp "New Up"
hide bmp "Open Down"
hide bmp "New Down"
put empty into fld "status"
put OMOPath()&"Library" into folderName
put the list of files of type "STAK" in folderName into libraryList
repeat with i = 1 to the number of lines of libraryList
put line i of libraryList into libraryName
if libraryName is "System" then next repeat
put "Librarying"&"e&libraryName"e&"..." into fld "status"
library folderName&":"&libraryName
end repeat
lock screen
put empty into fld "status"
show bmp "Open Up"
show bmp "New Up"
unlock screen
end openCard
on mouseUp
closeSplash
end mouseUp
on returnKey
closeSplash
end returnKey
on enterKey
closeSplash
end enterKey
on closeSplash returnVal
lock screen
hide bmp "Open Up"
hide bmp "New Up"
hide bmp "Open Down"
hide bmp "New Down"
put empty into fld "status"
dismiss with returnVal
end closeSplash
sINFO
New UpSCRP
on mouseUp
hide bmp "New Down"
closeSplash "new"
end mouseUp
on mouseDown
show bmp "New Down"
end mouseDown
on mouseStillDown
set the visible of bmp "New Down" to (the mouseLoc is within the rect of me)
end mouseStillDown
.xx{)
R#v%'$
&tvPR
Sv%'$t
$$pp"""""pp$$
,,,,,,,,,Pv,,
Wd&$pL
L"$&k
ddP$Q-
%tPZ-Q
.vSFS
--PU{
L"$%kX
GSRSRSS
$#"!
Lpp$
XRRQRQQ
$___"-
#,#___$
}~}S}
QQQ[PPP
ZZZPP
3,,,
[,QQ[
|vRSSFbb,
-RQ[.QQ
.%|~}
[,T[
ETAIL
tINFO
New Downdata
.xx{)
).X,,dAd-dAd,/X.))
Odd/.
qy^^Y^Y
@$d@$d$@$d@@$@@@$@@$d$@$d$d@@
d$@$d
,,,,,,,,,Pv,,
$@@@d$
d$@$@$@$$
d$$$d$
$@@@$$@@$d$d
@@@d$
d$@@@
@$@d$$d$$@d
@$@$@@@
@@$@@
@@@$@d
d$@@$d$d
$@$@$@$
$@@@$@
$d@$$
d@$@@$d$d
d@d$@$d$@$d@$@@$@d@$@@@d$@$d
d$@$d$d
d$d@$$
$$$d@$@@$
@@@d$@@$@@
Ydd$d$@$d$@d@$@$@$@d@@@
@@$@d$@@d$@d$@$@
@@$@d$$@d$@@d$@@$@d$@@$d$$d
d$d$@$@d$@$d@$d
@@$d$d@$@@$@@
@$@@$@$$@@$@d$@d$$@d$@$@$@@@d$@d@$$@d$$@$d@$@d@$d
d$@d$d$$@d$d$d@$@@$d$d/k
jYd$$@$@d$@$d@$@$$d@$d@@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d$@
Ol|)%
2-2,,,,32Q2WVWWWW
QQQQPP
QQQ[PPP
ZZZPP
3,,,
[,QQ[
|vRSSFbb,
-RQ[.QQ
.%|~}
[,T[
ETAIL
zINFO
statusTAIL
rINFO
Open UpSCRP
on mouseUp
hide bmp "Open Down"
closeSplash "open"
end mouseUp
on mouseDown
show bmp "Open Down"
end mouseDown
on mouseStillDown
set the visible of bmp "Open Down" to (the mouseLoc is within the rect of me)
end mouseStillDown
?-$###$-?
$6?6$
$#####$-
?-6-6-6-6?
66-66
#####6
$$$$$?
###$-###
$##?
?##$
$-$$-?
-6-6-6
.TAIL
uINFO
Open Downdata
/PPP_{xxX
yyy_{{xX
yyy_{{xX
++++}Q
yyy_{{xX
yyy_V{xX
.TAIL
(INFO
field id 40EXTI
|WWW--WW|
PPQQQ
WPPQQ
PQPPP
{PPPQQQ
}z{{xx
xx{zz
.PqxUQ
MLLL<
QQQQQQQQQQQQQQ
QQQPP
W-$WP
WWWWWWPPPPPWWP
SFSLL
zzzzzz}}}}}zz}z}zzz}z}}
PPPWW
{{zz}z}}
xxx{{{{{{{{{{{xxxxxx{{{
xxx{{{
{{_xz
V)$&p
SSSSSS
SSSSSSSSSSSS
<ijeeeeee
SSSSSS
SSSSS
WSSSSS{
$$P$P }P~
[[[[[T
[[[[[
QsPsP%r:U
s_OLmA
LAQ+eeY
QPW}zx
xxx{{{{xx
x{x{{{{{{
zzz}}}}zz
xxxxxxxx
x{x{x{{{
{{xxxxxx{x
zzz}z}z}z
x{{{{
zzz}}zzz
zzzz}}}
PPPWW
}}}-}
{{{{{{{{
WPPQQ
PPPPP
{{{{{
QQQQQQQ
QQQQQQ
RQRQRQR
QQPPW
WWWPPPW
PPPPPPQQQ
zzzzzz
zzzz}}}z}zz
{x{xx{
xxx{{{{{xxx
xx{zz
zzzzzz
PQQQQ
}zz{{x{{{
WPPQQ
QPP}z{
WPPPW
QQQPP
QQQQQ
QQQQQ
QQQQQQ
PWPPP
QQQQQ
PW-z{
PWWPP
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PPPPPPPPPP
PPPPPW
PPPPP
PPPPPWP
PWWPWPP
e~6,0,
$$$:#
SFRw|
lclklclk
^W]W]
||bwRSR
lklclkll
WW32,W,
,,23WWW]
,W2WW
yyyyO
E??cb¥
NUyyy
3,3,,,,,2,,2,,,,
,,23WWV
,*g<x
20{zV
]>~xwm
__VV3-
----,
-2V2W
|QDQP
GSSRSRSR
,2WW]
zV¥][
==>99
QQQPP
VW WV
wSLSSR
|}~}S}
ledbbdd
QPQP"P"
3,,,
eeS760
T#/_P
|vRSSFbb,
jdddbbd
.%|~}
ejdbd
sUVQP.Zyz
Sbba|
djdcl
&&,665
RSSSSS
,&6&&5n
*{y{+
,&%%6
yV|+y
,&<,??d
&&96??
{z{{z$
&<%?
yyyu%tt
*yUU-
xz+^%#
yxyzz
sQvQu
$_$$$
^{__+^
W^WWW33,,
-${_"
,,,2WWW¥V3
yyyyUUU+*
RSRww
~bv}|
]V3,3
,-----
,,,V3VVV_
]UUUO*~
,,-33WVVVU
hvv}}R
, ,--32UV_{_{r
VW/tQ~t.t
6SUO**
>Z Zl
--22
U_{_{r
UUUUUU
u/V$..WuFSS
~e67,6
%[%QPu
W/./t
SPvYw
sbPUVw
$P$/V$
=9>9=
PZ~zz{
rP/+V
RSRSR
v[vQu.
e^WWd
%QRPQPQP/P/
%PQt..t~txdx
lblll
zz~PQ
PZ.yz
tuZ$~~
{e{q_
VVW3,
s.,.W
VV3,
]]cbmg
_V2-
yx}-,QPr
r~.%S
}vbbR
,,,,<
x}}V/
$_%^_
,&?dQ*d
,,6,,&
%_${%*$+^
,,6,<?
-:-V3
&,669
<6,69d
@IDCD
PreferencesSCRP
on opencard
lock screen
ShowPreferences
SaveProperties
end opencard
on returnkey
click at the loc of cd btn "OK"
end returnkey
on enterkey
click at the loc of cd btn "OK"
end enterkey
on ShowPreferences
get the autoSave
set the hilite of cd btn "autosave" to (it is not 0)
send "mouseup" to cd btn "autosave"
if (it is not 0) then send "showValue it" to cd fld "autosave show"
put the gridSize into cd fld "gridSize"
send "ValueSelected" to cd fld "rulerstyle"
put InitialCaps(the scriptFont) into cd fld "scriptFont"
put the scriptSize into word 1 of cd fld "scriptSize"
put the scriptStyle into scrptStyle
put InitialCaps(the scriptStyle) into cd fld "scriptStyle"
end ShowPreferences
on DoPreferences
put the ref of me into theCard
get cd fld "autosave" of theCard
if char 1 of it is "-" then
set the autosave to 0
else set the autosave to it
set the rulerStyle to cd fld "rulerStyle" of theCard
set the gridSize to cd fld "gridsize" of theCard
set the scriptFont to cd fld "scriptFont" of theCard
set the scriptSize to word 1 of cd fld "scriptSize" of theCard
set the scriptStyle to cd fld "scriptStyle" of theCard
end DoPreferences
on DoCancel
lock screen
RestoreProperties
ShowPreferences
dismiss with "Cancel"
end DoCancel
on DoOk
dismiss with "OK"
end DoOk
function PropertiesSet
return "autosave,rulerstyle,gridsize,scriptfont,scriptsize,scriptstyle"
end PropertiesSet
on SaveProperties
put PropertiesSet() into theList
put empty into cd fld "backupPrefs"
repeat with i = 1 to the number of items of theList
do "put the "& item i of theList & " into line i of cd fld ""e&"backupPrefs""e
end repeat
end SaveProperties
on RestoreProperties
put PropertiesSet() into theList
repeat with i = 1 to the number of items of theList
put item i of theList into theProperty
put line i of cd fld "backupPrefs" into theValue
do "set the " & theProperty & " to "& theValue
end repeat
end RestoreProperties
function UpperCase theChar
get offset(theChar,"abcdefghijklmnopqrstuvwxyz")
if it is not 0 then return char it of "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
return theChar
end UpperCase
function LowerCase theChar
get offset(theChar,"ABCDEFGHIJKLMNOPQRSTUVWXYZ")
if it is not 0 then return char it of "abcdefghijklmnopqrstuvwxyz"
return theChar
end LowerCase
function InitialCaps theString
repeat with theWord = 1 to the number of words of theString
put UpperCase(char 1 of word theWord of theString) into char 1 of word theWord of theString
repeat with theChar = 2 to the number of chars of word theWord of theString
put LowerCase(char theChar of word theWord of theString) into char theChar of word theWord of theString
end repeat
end repeat
return theString
end InitialCaps
GRPO
zCARD
gdata
AutosaveSCRP
on mouseUp
put the hilite of me into autosaveOn
set the enable of cd fld "autosave label" to autosaveOn
set the enable of cd fld "autosave show" to autosaveOn
put cd fld "autosave" into saveValue
if autosaveOn then
repeat while char 1 of saveValue is "-"
delete char 1 of saveValue
end repeat
put saveValue into cd fld "autosave"
set the autosave to saveValue
else
if char 1 of saveValue is not "-" then put "-"&(cd fld "autosave") into cd fld "autosave"
set the autosave to 0
end if
end mouseUp
scriptsizeTAIL
rulerstyleTAIL
INFO
scriptstyleTAIL
pCARD
group id 93data
AutoSavedata
300TAIL
OKSCRP
on mouseUp
doOK
end mouseUp
gridsizeSCRP
on keyPressed theChar, selStart, selEnd
-- prevent multiple decimal points and fractional pixels
if "." is in me or me is "pixels" then
put "0123456789" into validChars
else
put ".0123456789" into validChars
end if
-- limit contents to 4 characters
if theChar is in validChars and ((selStart <= selEnd) or ((the length of me) < 4)) then
pass keyPressed
else beep
end keyPressed
on closeField
-- prevent multiple decimal points and fractional pixels
if "." is in me or fld "rulerstyle" is "pixels" then
put "0123456789" into validChars
else
put ".0123456789" into validChars
end if
if the length of me > 4 then
beep
put 9999 into me
end if
put the length of me into selnum
repeat with i = 1 to selnum
get char i of me
if it is not in validChars then
beep
put the gridSize into me
exit repeat
end if
end repeat
put me into temp
-- limit contents to 4 characters
if the length of me > 4 or me is empty or me < 0 then
put the gridSize into temp
end if
set the gridSize to temp
put the gridSize into me
send "ValueSelected" to fld "rulerstyle"
end closeField
10TAIL
on mouseUp
doCancel
end mouseUp
grid labeldata
h:TAIL
autosave labeldata
:TAIL
overdata
Y:TAIL
overdata
:TAIL
scriptstyleSCRP
function MenuList
return "Plain" & return & "Bold"& return & "Italic"
end MenuList
function ValueList
return "plain"&return&"bold"&return&"italic"
end ValueList
function CurrentValue newValue
if newValue is not empty then set the scriptStyle to newValue
return the scriptstyle
end CurrentValue
function CurrentLine
put ValueList() into theValues
put offset(CurrentValue(), theValues) into theChar
return the number of lines in (char 1 to theChar of theValues)
end CurrentLine
on mousedown
set the hilite of cd btn (the short name of me) to true
popupmenu MenuList() at the topleft of me with CurrentLine()
set the hilite of cd btn (the short name of me) to false
if it is 0 then exit mouseDown
ValueSelected it
end mousedown
on ValueSelected theLine
put line theLine of MenuList() into me
get CurrentValue(line theLine of ValueList())
end ValueSelected
PlainTAIL
autosave timeTAIL
Choose Autosave TimeTAIL
Autosave ShowSCRP
function MenuList
return "10 Seconds"& return & "30 Seconds"& return & " 1 Minute"& return & " 5 Minutes"& return & "10 Minutes"& return & "30 Minutes"& return & " 1 Hour" & return & "-"& return & "
..."
end MenuList
function ValueList
return "10,30,60,300,600,1800,3600"
end ValueList
function CurrentLine
put ValueList() into theValues
put offset(CurrentValue(), theValues) into theChar
if theChar is 0 then
return the number of lines of MenuList()
else return the number of items in (char 1 to theChar of theValues)
end CurrentLine
on mousedown
popupmenu MenuList() at the topleft of me with CurrentLine()
if it is 0 then exit mouseDown
if it is the number of lines of menuList() then
OtherSelected
else ValueSelected it
end mousedown
function CurrentValue
return the autosave
end CurrentValue
on ValueSelected theLine
if theLine is empty then put CurrentLine() into theLine
ShowValue item theLine of ValueList()
end ValueSelected
on OtherSelected theTime
if theTime is empty then
ask "
?" with the autosave
if it is empty then exit OtherSelected
put it into theTime
put true into isANumber
repeat with i = 1 to the number of chars of theTime
if char i of theTime is not in "0123456789" then put false into isANumber
end repeat
if not IsANumber then
beep
OtherSelected
exit OtherSelected
else if theTime > 9999 then
beep
OtherSelected
exit OtherSelected
end if
end if
ShowValue theTime
end OtherSelected
on ShowValue theSeconds
set the autosave to theSeconds
put theSeconds into cd fld "autosave"
if (theSeconds mod 3600) is 0 then
if (theSeconds div 3600) is 1 then
put "1 Hour" into me
else put (theSeconds div 3600)&& "Hours" into me
else if (theSeconds mod 60) is 0 then
if (theSeconds div 60) is 1 then
put "1 Minute" into me
else put (theSeconds div 60) && "Minutes" into me
else
put theSeconds && "Seconds" into me
end if
end ShowValue
5 MinutesTAIL
snaptogriddata
trueTAIL
scriptfontTAIL
Choose Autosave TimeTAIL
scriptfontSCRP
function MenuList
return "Osaka"& return & "Chicago"& return & "Courier"& return & "Geneva"& return & "Monaco"& return & "New York"& return & "-"& return & "
..."
end MenuList
function ValueList
return "OSAKA,CHICAGO,COURIER,GENEVA,MONACO,NEW YORK"
end ValueList
function CurrentLine
put ValueList() into theValues
put offset(CurrentValue(), theValues) into theChar
if theChar is 0 then
return the number of lines of MenuList()
else return the number of items in (char 1 to theChar of theValues)
end CurrentLine
on mousedown
popupmenu MenuList() at the topleft of me with CurrentLine()
if it is 0 then exit mouseDown
if it is the number of lines of MenuList() then
OtherSelected
else ValueSelected it
end mousedown
function CurrentValue
return the scriptfont
end CurrentValue
on ValueSelected theLine
put line theLine of MenuList() into me
set the scriptfont to item theLine of ValueList()
end ValueSelected
on OtherSelected
put InitialCaps(the scriptfont) into oldFont
-- ask "Please enter the desired script font." with oldFont
ask "
" with oldFont
if it is empty then exit OtherSelected
set the scriptFont to it
if the scriptFont is not it then
set the scriptfont to oldFont
beep
otherSelected
exit otherSelected
end if
put InitialCaps(it) into cd fld "scriptfont"
end OtherSelected
OsakaTAIL
grid label2data
pixelsTAIL
ruler labeldata
:TAIL
INFO
rulerstyleSCRP
function MenuList
return "Pixels" & return & "Inches" & return & "Centimeters"
end MenuList
function ValueList
return "pixels" & return & "inches" & return & "centimeters"
end ValueList
function LabelList
return "pixels"&return&"inches"&return&"cm."
end LabelList
function SingularLabelList
return "pixel"& return &"inch"&return&"cm."
end SingularLabelList
function CurrentValue
return the rulerstyle
end CurrentValue
function CurrentLine
put ValueList() into theList
put offset(CurrentValue(), theList) into theChar
return the number of lines in (char 1 to theChar of theList)
end CurrentLine
on mousedown
set the hilite of cd btn (the short name of me) to true
popupmenu MenuList() at the topleft of me with CurrentLine()
set the hilite of cd btn (the short name of me) to false
if it is 0 then exit mouseDown
ValueSelected it
end mousedown
on ValueSelected theLine
if theLine is empty then put CurrentLine() into theLine
put line theLine of MenuList() into theStyle
put theStyle into cd fld "rulerstyle"
set the rulerStyle to theStyle
if cd fld "gridsize" is 1 then
get line theLine of SingularLabelList()
else get line theLine of LabelList()
put it into cd fld "grid label2"
end ValueSelected
PixelsTAIL
!INFO
"INFO
scriptsizeSCRP
function MenuList
return "9 Point"&return&"10 Point"&return&"12 Point"&return&"14 Point"&return&"18 Point"&return&"24 Point"&return&"-"&return&"
end MenuList
function ValueList
return "9"&return&"10"&return&"12"&return&"14"&return&"18"&return&"24"
end ValueList
function CurrentLine
put ValueList() into theValues
put offset(CurrentValue(), theValues) into theChar
if theChar is 0 then
return the number of lines of MenuList()
else return the number of lines in (char 1 to theChar of theValues)
end CurrentLine
on mousedown
popupmenu MenuList() at the topleft of me with CurrentLine()
if it is 0 then exit mouseDown
if it is the number of lines of MenuList() then
OtherSelected
else ValueSelected it
end mousedown
function CurrentValue
return the scriptSize
end CurrentValue
on ValueSelected theLine
put line theLine of MenuList() into me
set the scriptSize to line theLine of ValueList()
end ValueSelected
on OtherSelected
put the scriptSize into oldSize
ask "
(1-255)" with oldSize
if it is empty then exit OtherSelected
put true into isANumber
repeat with i = 1 to the number of chars of it
if char i of it is not in "0123456789" then put false into isANumber
end repeat
if not IsANumber then
beep
otherSelected
exit otherSelected
else if it < 1 or it > 255 then
beep
otherSelected
exit otherSelected
end if
set the scriptSize to it
put it &" Point" into me
end OtherSelected
10 PointTAIL
%INFO
backupPrefsdata
pixels
OSAKA
plainTAIL